/*
 ============================================================================
 Name		: CommonFileUtil.h
 Author	  : JohnLZeng
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CCommonFileUtil declaration
 ============================================================================
 */

#ifndef COMMONFILEUTIL_H
#define COMMONFILEUTIL_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>

#include "RSSBriefData.h"

_LIT(KLVOAFileDetail,":\\VOA\\detail\\");
_LIT(KLVOAM3UFile,	 ":\\VOA\\playlist.m3u");

// CLASS DECLARATION

/**
 *  CCommonFileUtil
 * 
 */
class CCommonFileUtil : public CBase
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CCommonFileUtil();

	/**
	 * Two-phased constructor.
	 */
	static CCommonFileUtil* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CCommonFileUtil* NewLC();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CCommonFileUtil();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

public:
	static TUint16 GetInstallDisc();
	static TUint16 GetDiscEFirst();
	static void GetDetailFolderEFirst(TDes& aFolder);
	static void GetM3UFileEFirst(TDes& aFolder);
	
	static void GetDetailDocEFirst(TDes& aFolder,CRSSBriefData* aItem);
	static void GetDetailMp3EFirst(TDes& aFolder,CRSSBriefData* aItem);
	};

#endif // COMMONFILEUTIL_H
